package ooday05_vis;

public class exercise {
    //完成Point类和GetterSetter类，演示访问控制修饰符的用法
    private int a;
    private int b;

    public int geta(){
        return a;
    }
    public void seta(int a) {
        if (a >= 0) {
            this.a = a;
        }
    }

    public int getb(){
        return b;
    }
    public void setb(){
        if (a>=0){
        this.b=b;
        }
    }
}
